<?php

class Search extends AsbtractRestController {

	public function admob_get() {
		$arr_resp = $this->checkUserAuth();
		if (isset($arr_resp)) {
			$this->response($arr_resp);
		}
		//$type = $this->get("type"); // site/app or ad
		$id = $this->get("id");
		/*if (!($id)) {
			$arr_resp = array();
			MessagingHelper::AddToError($arr_resp,ErrorMessgaes::$USER_ACOUNT_ADMOB_CODE, ErrorMessgaes::$USER_ADMOB_PARAMS_MISSING_MSG);
			return $this->response($arr_resp);
		}*/
		$admboModel = new AdMobModel;
		$arr_resp = $admboModel->getData('search',$this->email,$id);
		return $this->response($arr_resp);
	}





}